package com.itheima.String;

public class Dmeo {
    public static void main(String[] args) {
        StringBuilder sb = new StringBuilder();
        sb.append("红色").append("黑色");
        System.out.println(sb);
        System.out.println("-------------");
        //反转
        sb.reverse();
        System.out.println(sb);
        System.out.println("-------------");
        //输出长度
        int i = sb.length();
        System.out.println(i);
        System.out.println("--------------");
        sb.toString();
        System.out.println(sb);
    }
}
